package com.school.basic.repository;

import com.school.basic.entity.StudentInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface  StudentInfoRepository extends JpaRepository<StudentInfo, Integer>, JpaSpecificationExecutor<StudentInfo> {
    void deleteStudentInfosByIdIn(List<Integer> idList);
    void deleteAllByClassId(String classId);
    void deleteAllByClassIdIn(List<Integer> idList);
}
